Model Generation Strategies
The Model Generation Strategy dialog, shown below, appears whenever you first click Train and the Models list is empty. In the dialog you can choose a model generation strategy, which determines the models that will be generated for the current Segmentation Wizard session when training is started. You can create new strategies and edit user-defined strategies (see Adding New Strategies and Editing User-Defined Strategies), as well as import and export strategies, duplicate strategies, and set a strategy as the default.
Model Generation Strategy dialog
The Model Generation Strategy dialog shows the list of available strategies in the top section and the models associated with the selected strategy in a tree view in the bottom section. The default strategies, described below, include a selection of models for fast results and for high performance.
| High Accuracy |
The models in this strategy, which are listed below, are more demanding than those in 'Quick Start', but can provide a higher level of accuracy.
|
| Machine Learning (Classical) Models | This Machine Learning (Classical) model strategy includes the two random forest models available in the 'Quick Start' model generation strategy. |
| Pre-Trained U-Net Depth = 5 |
The models in this new strategy provide both good and fast results with the 2D U-Net pre-trained model, as well as better but slower results with the 2.5D U-Net pre-trained model. You should note that starting with a pre-trained model often provides better and faster results with smaller training sets than using an untrained model (see Pre-Trained Models).
The models is the new strategy include:
|
| Quick Start |
The models in this strategy, which are listed below, generally provide good results without excessive demands in training times and include both machine learning (classical) models and a deep model.
|
| Single Model 1 (Good and Fast) | This deep model strategy includes U-Net with a 2D input dimension, a depth level of 5, and an initial filter count of 64. |
| Single Model 2 (Better and Slower) | This deep learning model strategy includes U-Net with an input dimension of 2.5D (3 slices), a depth level of 5, and an initial filter count of 64. |
| Single Model 3 (Best and Slow) | This deep learning model strategy includes U-Net with a 3D input dimension, a depth level of 4, patch size of 32x32x32, an initial filter count of 32, and uses batch normalization. |
The following options are available in the dialog:
| Icon | Description | |
|---|---|---|
| New | - | Creates a new model generation strategy (see Adding New Strategies). |
| Import | - | Lets you import a model generation strategy, which are saved in a proprietary Strategy (*.strategy extension) file format. |
| Export | - | Lets you export a model generation strategy, which are saved in a proprietary Strategy (*.strategy extension) file format. |
| Duplicate | - | Duplicates the selected model generation strategy. |
| Delete | - |
Deletes the selected model generation strategy.
Note You cannot delete pre-defined strategies. |
| Set as default | - | Lets you set the selected strategy as the default, which will be selected automatically whenever the Model Generation Strategy dialog appears. |
| Expand all models |
|
Expands all models in the list so that you can review and edit the parameters of deep models and the feature presets of machine learning (classical) models. |
| Collapse all models |
|
Collapses the list of all models. |
| Select all models |
|
Selects all models in the list.
Note All selected models will be generated whenever you click Continue or Apply. |
| Deselect all models |
|
Deselects all models in the list. |
| Add new model |
|
Adds a new to the selected user-defined strategy (see Adding New Strategies and Editing User-Defined Strategies). |
| Remove selected model |
|
Removes the selected model from the selected user-defined strategy (see Editing User-Defined Strategies). Note You cannot remove models from pre-defined strategies. |
| Add new features preset |
|
Lets you add a new features preset to the selected Machine Learning (Classical) model (see Adding New Strategies and Editing User-Defined Strategies).
Note You cannot add features presets to any Machine Learning (Classical) model that is part of a pre-defined strategy. |
| Remove selected features preset |
|
Removes the selected features preset from the selected Machine Learning (Classical) model.
Note You cannot remove features presets from any Machine Learning (Classical) model that is part of a pre-defined strategy. |
| Save | - | Saves any changes you made to the model generation strategy or to the settings of models within a user-defined strategy. |
| Reload | - | Reloads the current strategy. |
| Continue/Apply | - | Continue… Is available when the Model Generation Strategy dialog appears after clicking 'Train'. In this case, all selected models in the current strategy will be generated and then training will begin.
Apply… Appears when the Model Generation Strategy dialog is opened from the Models tab. In this case, all selected models in the current strategy will only be generated. Note You can choose to train or not train generated models on the Models tab on the Segmentation Wizard panel. |
| Close | - | Closes the dialog. |
You can create your own model generation strategy that includes any of the available deep learning or machine learning (classical) models, as well as set that strategy as the default.
- Go to the Models tab on the Segmentation Panel and then click the Open Model Generation Strategy
button.
The Model Generation Strategy dialog appears.
Note The Model Generation Strategy will also appear automatically whenever you first click Train and the list on the Models tab is empty.
- Click New and then rename the new strategy that appears in the Strategies list, recommended.
- Click the Add New Model
button. - Choose a model in the drop-down menu, as shown below.

You can choose from the available algorithms in the Classifiers section for adding Machine Learning (Classical) models (see Machine Learning (Classical) Model Types for details about the available classifiers) or from the available architectures in the Deep Models section for adding deep models (see Deep Learning Model Types for details about the available deep model architectures). The Deep Models section also includes deep models pre-trained by the Dragonfly Team (see Pre-Trained Models). Starting with a pre-trained model often provides better and faster results with smaller training sets than using an untrained model.
- Do the following to configure a Machine Learning (Classical) model:
- Choose a feature preset for the Machine Learning (Classical) model in the drop-down menu, as shown below.

Note Refer to Default Dataset Features Presets for information about the available feature presets.
- To add additional feature presets, select the added Machine Learning (Classical) model and then click the Add New Features Preset
button. - Choose the additional feature preset in the drop-down menu, as shown below.

- Double-click inside the Name field and enter a new model name, optional.

- Choose a feature preset for the Machine Learning (Classical) model in the drop-down menu, as shown below.
- Do the following to configure a deep model:
- Edit the parameters of the deep model, as shown below, if required.

Note Refer to Training Parameters Tab and Settings for information about the settings available for deep models.
Double-click inside the Name field and enter a new model name, optional.
- Edit the parameters of the deep model, as shown below, if required.
- Do the following to add a pre-trained deep model:
- Choose Pre-Trained (by the Dragonfly Team) in the Select drop-down menu.
- Double-click inside the Pre-trained model field and then choose the required model.

Note Selected models will be downloaded to a local cache the first time that they are imported and then a copy will be made for the current Segmentation Wizard session. Subsequent models will be copied from the local cache. You should note that Dragonfly will check for new or updated pre-trained models each time that the application is started, provided that your system is connected to the Internet. You should also note that cached models will be available even when Dragonfly runs offline.
- Add additional models to your new strategy, as required.
- Check the Set as default option to set your new strategy as the default, optional.
The default strategy is the one that will be selected automatically whenever the Model Generation Strategy appears.
- Click Save.
If required, you can edit user-defined model generation strategies by adding or removing models or by editing the feature presets of machine learning (classical) models and the parameters of deep models.
- Open the Model Generation Strategy dialog.
- Select the strategy that you want to edit.
- Do the following, as required, to add or remove models.
- Click the Add New Model
button to add a new model to the selected strategy.
Refer to the instructions in Adding New Strategies for information about choosing a model type and adding feature presets to machine learning (classical) models and editing the parameters of deep models.
- Select a model and then click the Remove Model
button to remove a model from the selected strategy.
- Click the Add New Model
- Edit the parameters of the deep model(s) in the selected strategy, as required.
Note Refer to Training Parameters Tab and Settings for information about the settings available for deep models.
- Do the following to add or remove the feature presets of the Machine Learning (Classical) model(s) in the selected strategy, as required.
- Select the model and then click the Add New Features Preset
button to add a new feature preset. You can then select a feature preset in the drop-down menu, as shown below.

Note Refer to Default Dataset Features Presets for information about the available feature presets.
- Select the feature preset that you want to remove and then click the Remove Features Preset
button.
- Select the model and then click the Add New Features Preset
- Save your changes.
